package com.poetry.vup.works.service;

import com.poetry.vup.common.result.BaseResult;
import com.poetry.vup.common.result.page.BasePage;
import com.poetry.vup.works.domain.VupWorksDTO;
import com.poetry.vup.works.domain.VupWorksVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

public interface WorksExhibitionService {

    /**
     * 查找所有作品
     * @param pageSize
     * @param pageNum
     * @return
     */
    BasePage<VupWorksVO> findAllWorks(int pageSize, int pageNum);

    /**
     * 添加作品
     * @param vupWorksDTO
     * @return
     */
    Long addWorks(VupWorksDTO vupWorksDTO);

    /**
     * 上传图片
     * @param file
     * @param id
     * @return
     */
    BaseResult<Object> uploadFile(MultipartFile file, Long id);


}
